import { request } from '@/utils/request.js'

//ocr识别
export function realname(data) {
  return request.net({
    url: '/realname/personInfo/ocr',
    method: 'post',
    data: data,
    showLoading: true, // 例如禁用加载动画
    loadingText: '实名认证中...' // 自定义加载文字
  })
}

// 添加认证信息
export function personInfoAdd(data) {
  return request.net({
    url: '/realname/personInfo',
    method: 'post',
    data: data,
    showLoading: true,
    loadingText: '正在提交...'
  })
}

//人员身份校验
export function personInfoAuth(data) {
  return request.net({
    url: '/realname/personInfo/api/platform/personAuth/idCardMatch',
    method: 'post',
    data: data,
  })
}
